package org.hdl.anima.filter;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 
 * @author qiuhd
 * @since  2014-8-1
 * @version V1.0.0
 */
public class FilterSupport {
	
	private List<HandlerFilter> filters ;
	
	public FilterSupport() {
		filters = new ArrayList<HandlerFilter>(0);
	}
	
	public void addFilter(HandlerFilter filter) {
		
        for(HandlerFilter f:filters)
            if(f == filter)
                return;
        
        filters.add(filter);
	}
	
	public List<HandlerFilter> getFilters() {
		return Collections.unmodifiableList(filters);
	}
}

